<%- include('../layouts/head.ejs', { pageConf })%>

<%- include('../common/user_nav.ejs', { commonPageConf })%>


<div class="problem-detail-container">

  <div class="problem-wrap">
    <h1>题目</h1>
    <hr />
    <span class="lable">题目编号：</span>
    <span class="content"><%= problem.pid%></span>
    <hr />
    <span class="lable">题目：</span>
    <span class="content"><%= problem.title%></span>
    <hr />
    <span class="lable">题目类型：</span>
    <span class="content"><%= problem.problemTypeId%></span>
    <hr />
    <span class="lable">题目难度：</span>
    <span class="content"><%= problem.difficulty%></span>
    <hr />
    <span class="lable">内容：</span>
    <pre class="content"><%= problem.content%></pre>
    <hr />
    <span class="lable">示例：</span>
    <pre class="content"><%= problem.example%></pre>
    <hr />
    <span class="lable">通过次数：</span>
    <span class="content"><%= problem.pass_times%></span>
    <hr />
    <span class="lable">提交次数：</span>
    <span class="content"><%= problem.submit_times%></span>
    <hr />
  </div>

  <div class="answer-wrap">
    <h1>答题区域</h1>
    <hr />
    <div class="input-wrap">
      <form class="js_form" action="#" method="post">
        <textarea class="problem-input js_textarea" name="problem_answer">
function test() {
  console.log('hello js');
}</textarea>
        <br/>
        <input class="js-result" type="text" name="result" placeholder="模拟结果 1通过 0不通过" />
        <br />
        <!-- 隐藏的数据 -->
        <input class="js-problemTypeId" style="display: none;" type="text" value="<%= problem.problemTypeId%>" />
        <input class="js-pid" style="display: none;" type="text" value="<%= problem.pid%>" />
        <input class="js-id" style="display: none" type="text"  value="<%= problem.id%>" />
        <input class="btn js_submit" type="submit" value="提交" />   
        <input class="btn reset" type="reset" value="重置" />
      </form>
    </div>
    
  </div>
</div>


<%- include('../layouts/foot.ejs', { pageConf })%>